#ifndef __SPHEREMAP__HPP
#define __SPHEREMAP__HPP

#include <iostream>
#include <fstream>
#include <cstdio>
#include <cstdlib>
#include <cstring>

#include "glee.h"

#include "glut.h"

static const int SUBDIVISION = 30; // Le nombre de discretisation de la sphère

class SphereMap{

	private :

		int size; // Rayon de la sphère map
		GLuint texId; // Identifiant des texture constituant les faces

	public:

		// Ctor-Dtor
		SphereMap();
		//SphereMap(int _size, GLuint _texId);
		~SphereMap();

		// Methodes
		void draw();
		void paramSphereMap();
		unsigned char * loadPPM(const char * const fn, unsigned int& w, unsigned int& h);

		inline void initSphereMap(const int s, const GLuint texid){ size=s; texId=texid;}

		// Get-eur & Set-eur
		inline const GLuint getTexId() const {return texId;}
		inline GLuint setTexId() {return texId;}

};

#endif
